import request from '@/utils/request'

// 查询系统设置列表
export function listConfigOfCam(query) {
  return request({
    url: '/system/configOfCam/list',
    method: 'get',
    params: query
  })
}

// 查询系统设置详细
export function getConfigOfCam(configId) {
  return request({
    url: '/system/configOfCam/' + configId,
    method: 'get'
  })
}

// 新增系统设置
export function addConfigOfCam(data) {
  return request({
    url: '/system/configOfCam',
    method: 'post',
    data: data
  })
}

// 修改系统设置
export function updateConfigOfCam(data) {
  return request({
    url: '/system/configOfCam',
    method: 'put',
    data: data
  })
}

// 删除系统设置
export function delConfigOfCam(configId) {
  return request({
    url: '/system/configOfCam/' + configId,
    method: 'delete'
  })
}
